var TEA = tea = {};
TEA.SHOPLIST = null;
TEA.SHOP = null;
TEA.STOREHOUSELIST = null;
TEA.PRODUCTITEMLIST = null;
TEA.CUSTOMERTYPELIST = null;
TEA.CUSTOMERSOURCELIST = null;
TEA.CLEARURL = 'common!clearDataGrid.action';
TEA.getShopList = function(){
	if(TEA.SHOPLIST==null){
		TEA.SHOPLIST = syncCallService('dict!selectByType.action?dataDictionaryType=shop',null)
	}
	return TEA.SHOPLIST;
} 

TEA.getStoreHouseList = function(){
	if(TEA.STOREHOUSELIST==null){
		TEA.STOREHOUSELIST = syncCallService('dict!selectByType.action?dataDictionaryType=storeHouse',null)
	}
	return TEA.STOREHOUSELIST;
} 

TEA.getProductItemList = function(){
	if(TEA.PRODUCTITEMLIST==null){
		TEA.PRODUCTITEMLIST = syncCallService('dict!selectByType.action?dataDictionaryType=productItem',null);
	}
	return TEA.PRODUCTITEMLIST;
}

TEA.getCustomerTypeList = function(){
	if(TEA.CUSTOMERTYPELIST==null){
		TEA.CUSTOMERTYPELIST = syncCallService('dict!selectByType.action?dataDictionaryType=customerType',null);
	}
	return TEA.CUSTOMERTYPELIST;
}

TEA.getCustomerSourceList = function(){
	if(TEA.CUSTOMERSOURCELIST==null){
		TEA.CUSTOMERSOURCELIST = syncCallService('dict!selectByType.action?dataDictionaryType=customerSource',null);
	}
	return TEA.CUSTOMERSOURCELIST;
}
TEA.getShop = function(){
	if(TEA.SHOP==null){
		TEA.SHOP = syncCallService('common!getSessionValue.action?sessionName=userShop',null)
	}
	return TEA.SHOP;
	
}